package list;

public class Main {
    public static void main(String[] args) {
        MyLinkList list = new MyLinkList();
       /* list.create();*/
        list.addFirst(10);
        list.addFirst(20);
        list.addFirst(30);
        list.addFirst(40);
        list.addLast(50);
        list.addLast(60);
        list.addIndex(1,10);
        list.addIndex(0,10);
        list.addIndex(5,20);
        System.out.println("=======");
        list.display();
        System.out.println("=======");
        int size = list.size();
        System.out.println(size);
        System.out.println(list.contains(20));
        System.out.println(list.contains(5));
//        list.remove(10);
//        list.remove(40);
//        list.remove(10);
//        list.remove(600);
        list.addFirst(10);
        list.display();
        list.removeAllKey(10);
        list.display();
    }
}
